/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package deptentity;

import java.math.BigDecimal;
import java.rmi.RemoteException;
import java.util.Collection;
import javax.ejb.CreateException;
import javax.ejb.EJBHome;
import javax.ejb.FinderException;
import javax.ejb.ObjectNotFoundException;

/**
 *
 * @author user
 */
public interface DeptHome extends EJBHome{
    public DeptComponent createDept(BigDecimal deptno, String dname, String loc) throws CreateException, RemoteException;
    public DeptComponent findByPrimaryKey(BigDecimal key) throws ObjectNotFoundException, FinderException, RemoteException;
    public Collection findByLocation(String loc) throws FinderException, RemoteException;
    public Collection findByName(String name) throws FinderException, RemoteException;
    public Collection findAll() throws FinderException, RemoteException;
    public DeptComponent findByDeptno(BigDecimal deptno) throws FinderException, RemoteException;
}
